<?php

use Elite\Infrastructure\Server\Listener\Listener;

class OnRequestListener extends Listener {

    public function event() : string {
        return 'request';
    }

    public function callback() {
        $request = func_get_arg(0);
        $response = func_get_arg(1);
        (new WebBootstrap())->startHttp($this->swoole, $request, $response);
    }

}